package com.yloveg.base;

import java.io.Serializable; 
public class Result<T> implements Serializable { 
	private static final long serialVersionUID = -744302740539442970L; 
	private String code = "200"; 
	private String msg = "success"; 
	private T data; 
	public String getCode() { 
	return code; 
	} 
	public String getMsg() { 
	return msg; 
	} 
	public T getData() { 
	return data; 
	} 
	public Result() { 
	} 
	public Result(T data) { 
	this.data = data; 
	} 
	public Result(String code, String msg) { 
	this.code = code; 
	this.msg = msg; 
	} 
	public Result(String code, String msg, T data) { 
	this.code = code; 
	this.msg = msg; 
	this.data = data; 
	} 
}